package entity;

import java.util.Objects;

public class Demo {
    private Integer did;
    private String dname;
    private String dpwd;

    public Demo() {
    }

    public Demo(Integer did, String dname, String dpwd) {
        this.did = did;
        this.dname = dname;
        this.dpwd = dpwd;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getDname() {
        return dname;
    }


    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getDpwd() {
        return dpwd;
    }

    public void setDpwd(String dpwd) {
        this.dpwd = dpwd;
    }

    @Override
    public String toString() {
        return "Demo{" +
                "did=" + did +
                ", dname='" + dname + '\'' +
                ", dpwd='" + dpwd + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Demo demo = (Demo) o;
        return Objects.equals(did, demo.did) && Objects.equals(dname, demo.dname) && Objects.equals(dpwd, demo.dpwd);
    }

    @Override
    public int hashCode() {
        return Objects.hash(did, dname, dpwd);
    }
}
